package com.simtop.mapper;

import com.simtop.domain.news.PolicyInformation;
import com.simtop.domain.news.PolicyInformationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lvyongwei
 */
@Mapper
public interface PolicyInformationMapper {

    /**
     * 添加新闻资讯
     * @param policyInformation 新闻资讯实体
     * @return
     */
    public boolean insertPolicyInformation(PolicyInformation policyInformation);

    /**
     * 查询政策资讯列表
     * @param policyInformation
     * @return
     */
    public List<PolicyInformationVo> getPolicyInformationList(PolicyInformation policyInformation);

    /**
     * 修改新闻资讯
     * @param policyInformation
     * @return
     */
    public boolean updatePolicyInformation(PolicyInformation policyInformation);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    public boolean deletePolicyInformation(@Param("list") List<Long> ids);

    /**
     * 根据id获取资讯详情
     * @param policyInformationId
     * @return
     */
    public PolicyInformation getPolicyInformationById(Long policyInformationId);
}
